贾辉 17:01:03
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Java账本 -查询</title>
<!--[if lt IE 9]>
  <script src="libs/html5shiv.min.js"></script>
  <script src="libs/respond.min.js"></script>
  <![endif]-->
<script src="libs/jquery-1.12.1.min.js"></script>
<link href="libs/bootstrap-3.3.6/css/bootstrap.min.css" rel="stylesheet">
<script src="libs/bootstrap-3.3.6/js/bootstrap.min.js"></script>
<script src="libs/handlebars.min.js"></script>
<script src="libs/js.cookie-2.1.0.min.js"></script>
<script src="libs/getQueryString.js"></script>
<script src="libs/jquery.backstretch.min.js"></script>
<script src="libs/md5.min.js"></script>
<script src="libs/jquery.backstretch.min.js"></script>

</head>
<body>

	<div class="container">
		<div class="row">
			<div class="col-md-12 page-header">
				<h2 class="text-center">
					<br /> <small>档案详情显示</small>
				</h2>
			</div>
		</div>
	</div>
	<div class="container">
		<div class="row">
			<div class="col-md-8">
				<ul class="nav nav-pills  pull-right">
					<li><a href="index.html">首页</a></li>
					<li><a href="add.html">添加</a></li>
					<li><a href="tongji.html">统计</a></li>

					<li class="active"><a href="#">详细档案信息</a></li>
					<li><a href="#">昵称：<span id="text13"></span></a></li>
				</ul>
			</div>
		</div>
	</div>
	<div class="row">
		<div class="col-md-12">
			<hr />
		</div>
	</div>
	<div class="col-md-12">
		<div class="col-md-2">
			<div class="panel panel-success">
				<div class="panel-heading">ID</div>
				<div class="panel-body">
					<span id="text1"></span>
				</div>
			</div>
		</div>
		<div class="col-md-2">
			<div class="panel panel-success">
				<div class="panel-heading">档案号</div>
				<div class="panel-body">
					<span id="text2"></span>
				</div>
			</div>
		</div>
		<div class="col-md-2">
			<div class="panel panel-success">
				<div class="panel-heading">身份号码</div>
				<div class="panel-body">
					<span id="text3"></span>
				</div>
			</div>
		</div>
		<div class="col-md-2">
			<div class="panel panel-success">
				<div class="panel-heading">姓名</div>
				<div class="panel-body">
					<span id="text4"></span>
				</div>
			</div>
		</div>
		<div class="col-md-2">
			<div class="panel panel-success">
				<div class="panel-heading">性别</div>
				<div class="panel-body">
					<span id="text5"></span>
				</div>
			</div>
		</div>
		<div class="col-md-2">
			<div class="panel panel-success">
				<div class="panel-heading">出生日期</div>
				<div class="panel-body">
					<span id="text6"></span>
				</div>
			</div>
		</div>
		<div class="col-md-2">
			<div class="panel panel-success">
				<div class="panel-heading">预退休日期</div>
				<div class="panel-body">
					<span id="text7"></span>
				</div>
			</div>
		</div>
		<div class="col-md-2">
			<div class="panel panel-success">
				<div class="panel-heading">实际退休日期</div>
				<div class="panel-body">
					<span id="text8"></span>
				</div>
			</div>
		</div>
		<div class="col-md-2">
			<div class="panel panel-success">
				<div class="panel-heading">特殊工种</div>
				<div class="panel-body">
					<span id="text9"></span>
				</div>
			</div>
		</div>
		<div class="col-md-2">
			<div class="panel panel-success">
				<div class="panel-heading">女管理岗位</div>
				<div class="panel-body">
					<span id="text10"></span>
				</div>
			</div>
		</div>
		<div class="col-md-2">
			<div class="panel panel-success">
				<div class="panel-heading">职称</div>
				<div class="panel-body">
					<span id="text11"></span>
				</div>
			</div>
		</div>
		<div class="col-md-2">
			<div class="panel panel-success">
				<div class="panel-heading">年龄</div>
				<div class="panel-body">
					<span id="text12"></span>
				</div>
			</div>

		</div>
		<div class="col-md-4 col-md-offset-4">
			<button id="update" class="btn btn-primary btn-block">修改</button>
		</div>
	</div>

	<script id="template" type="text/x-handlebars-template">
   {{#each item}}
  <div class="panel panel-default col-md-3" >
     <div class="panel-body">
       <dl>
        <dt>ID</dt><dd>{{id}}</dd>
        <dt>档案号</dt><dd>{{archive_id}}</dd>
        <dt>身份证号码</dt><dd>{{identity}}</dd>
<dt>姓名</dt><dd>{{name}}</dd>
<dt>性别</dt><dd>{{gender}}</dd>
<dt>出生日期</dt><dd>{{birthday}}</dd>
<dt>预退休日期</dt><dd>{{date_retire1}}</dd>
<dt>实际退休日期</dt><dd>{{date_retire2}}</dd>
<dt>特殊工种</dt><dd>{{sp}}</dd>
<dt>女管理岗位</dt><dd>{{fc}}</dd>
<dt>职称</dt><dd>{{title}}</dd>
<dt>工龄</dt><dd>{{seniority}}</dd>
       </dl>  
      </div>
    </div>
 {{/each}}
</script>
	<script type="text/javascript">
		$(function() {
			$.backstretch("1469087141624.jpg");
			var archive_id = getQueryString('archive_id');
			var url = 'queryB.action?archive_id=' + archive_id;
			console.log(url);
			$.getJSON(url, function(res) {
				$('#text1').text(res[0].id);
				console.log(res);
			});
			$.getJSON(url, function(res) {
				$('#text2').text(res[0].archive_id);
			});
			$.getJSON(url, function(res) {
				$('#text3').text(res[0].identity);
			});;
			$.getJSON(url, function(res) {
				$('#text4').text(res[0].name);
			});
			$.getJSON(url, function(res) {
				$('#text5').text(res[0].gender);
			});
			$.getJSON(url, function(res) {
				$('#text6').text(res[0].birthday);
			});
			$.getJSON(url, function(res) {
				$('#text7').text(res[0].date_retire1);
			});
			$.getJSON(url, function(res) {
				$('#text8').text(res[0].date_retire2);
			});
			$.getJSON(url, function(res) {
				$('#text9').text(res[0].sp);
			});
			$.getJSON(url, function(res) {
				$('#text10').text(res[0].fc);
			});
			$.getJSON(url, function(res) {
				$('#text11').text(res[0].title);
			});
			$.getJSON(url, function(res) {
				$('#text12').text(res[0].seniority);
			});
			

			$('#update').click(function() {

				window.location.href = 'update.html?archive_id=' + archive_id;
			});

		});
	</script>
</body>
</html>
